from django.conf.urls.defaults import *
from forum.models import Forum, Thread, ForumPost

urlpatterns = patterns('',
    (r'^$', 'forum.views.forum_index'),
    (r'^(?P<forum_id>\d+)/$', 'forum.views.thread_list'),
    (r'^(?P<forum_id>\d+)/(?P<thread_id>\d+)/$', 'forum.views.forumpost_list'),
    (r'^(?P<forum_id>\d+)/new$', 'forum.views.new_thread'),
    (r'^(?P<forum_id>\d+)/(?P<thread_id>\d+)/(?P<forumpost_id>\d+)/$', 'forum.views.edit_forumpost'),
    (r'^(?P<forum_id>\d+)/(?P<thread_id>\d+)/new$', 'forum.views.new_forumpost'),   
)